[UITableViewController loadView] loaded the "PersonnalDetails" nib but didn't get a UITableView.
Posted
by tak
on Stack Overflow
See other posts from Stack Overflow
or by tak
Published on 2010-04-13T22:35:18Z
Indexed on
2010/04/13
22:43 UTC
Read the original article
Hit count: 405
iphone
I am trying to load a new view with the following code
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
PersonnelDetails *detailViewController = [[PersonnelDetails alloc] initWithNibName:@"PersonnelDetails" bundle:[NSBundle mainBundle]];
[self.navigationController pushViewController:detailViewController animated:YES]; [detailViewController release];
} inhertance :- PersonnelDetails inherits UITableViewController
but i am getting an exception :
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "PersonnalDetails" nib but didn't get a UITableView.'
even though i have a UITableView in the PersonnalDetails nib and also i have connected the view outlet of PersonnelDetails(viewController) to the UITableView.
what can be the posible cause?
© Stack Overflow or respective owner